package homework.day12;

public class TranRecord {

        private  Integer id;
        private  String  name;
        private  Integer mechanismnumb;
        private  Integer sex;
        private  String Accountnumber;
        private  String  time;
        private  double  mouney;

    public TranRecord() {
    }

    public TranRecord(Integer id, String name, Integer mechanismnumb, Integer sex, String accountnumber, String time, double mouney) {
        this.id = id;
        this.name = name;
        this.mechanismnumb = mechanismnumb;
        this.sex = sex;
        Accountnumber = accountnumber;
        this.time = time;
        this.mouney = mouney;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getMechanismnumb() {
        return mechanismnumb;
    }

    public void setMechanismnumb(Integer mechanismnumb) {
        this.mechanismnumb = mechanismnumb;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public String getAccountnumber() {
        return Accountnumber;
    }

    public void setAccountnumber(String accountnumber) {
        Accountnumber = accountnumber;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public double getMouney() {
        return mouney;
    }

    public void setMouney(double mouney) {
        this.mouney = mouney;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("TranRecord{");
        sb.append("id=").append(id);
        sb.append(", name='").append(name).append('\'');
        sb.append(", mechanismnumb=").append(mechanismnumb);
        sb.append(", sex=").append(sex);
        sb.append(", Accountnumber='").append(Accountnumber).append('\'');
        sb.append(", time='").append(time).append('\'');
        sb.append(", mouney=").append(mouney);
        sb.append('}');
        return sb.toString();
    }
}

